﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace LowLevelGraphics.Filter
{
    /// <summary>
    /// This is the script what will be assembled at runtime
    /// {0} will be replaced 
    /// </summary>
    public class LambdaScript
    {
        //This is the source string for a lambda filter
        //It contains a part where the script will be executed
        public string Source = @"

        using System.Drawing;
        using LowLevelGraphics;
        using LowLevelGraphics.Filter;

        public class LambdaScript
        {
            LambdaCommand command = new LambdaCommand();

            public LambdaScript()
            {
            }

            public void Test(UnsafeBitmap _bitmap)
            {
                command.Apply(_bitmap,
                    (Color c, int x, int y) => {0}
                );
                //_bitmap.Dispose();
            }
        }
        ";
    }
}
